# tu2 = ("hello",[10,20,30])
# li = tu2[1]  # 1下标
# print(li[0])  # 先获取某个值再去获取某个值
# print(tu2[1][0])

# print(tu2[0][0])

tu = (1,2,3,4,5,1,1)
print(tu.index(4))  # 通过值找下标
print(tu.count(1))  # 统计元素次数


a = 1
b = 2
# c = a  # c=1
# a = b # a=2
# b = c  # b=1
# print(a,b)

# 交换值
a,b = b,a
print(a,b)

tu = 1,2,3 # 打包，默认打包成一个元组格式的数据
print(tu)
print(type(tu))
c,d,e = tu  # 装包
print(c,d,e)
# c,d = 1,2



